package io.framework.modules.hpinfo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.framework.common.service.impl.CrudServiceImpl;
import io.framework.modules.hpinfo.dao.VTHpglHpspinfoDao;
import io.framework.modules.hpinfo.dto.VTHpglHpspinfoDTO;
import io.framework.modules.hpinfo.entity.VTHpglHpspinfoEntity;
import io.framework.modules.hpinfo.service.VTHpglHpspinfoService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 环境影响评价管理-环评审批业务信息
 *
 * @author Gujq email
 * @since 1.0.0 2020-03-19
 */
@Service
public class VTHpglHpspinfoServiceImpl extends CrudServiceImpl<VTHpglHpspinfoDao, VTHpglHpspinfoEntity, VTHpglHpspinfoDTO> implements VTHpglHpspinfoService {

    @Override
    public QueryWrapper<VTHpglHpspinfoEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<VTHpglHpspinfoEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}